package com.itheimaoa.service.base;

import java.io.Serializable;
import java.util.Collection;
import java.util.LinkedHashMap;

import com.itheimaoa.domain.QueryResult;

public interface ICommonService<T> {
	void saveEntity(T t);

	void deleteEntity(Serializable id);

	void updateEntity(T t);

	T findEntity(Serializable id);

	Collection<T> getEntitys();

	QueryResult<T> getQueryResult(Integer firstIndex, Integer maxResult, String strWhere, Object[] params, LinkedHashMap<String, String> orderby);
}
